package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 歌单文件
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("m_folder")
public class Folder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "歌单名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @JsonIgnore
    @ApiModelProperty(value = "逻辑删除(0-未删除 1-已删除)")
    @TableField("del_flag")
    private Integer delFlag;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)    // 表示在进行插入操作时会填充字段
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)     // 表示在进行插入或更新操作时会填充字段
    private Date updateTime;

}
